package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 审批对象 t_approval
 * 
 * @author ruoyi
 * @date 2020-04-17
 */
public class Approval extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 审批名字 */
    @Excel(name = "审批名字")
    private String approvalName;

    /** 申请人所属部门 */
    @Excel(name = "申请人所属部门")
    private Long applyManDept;

    /** 申请人id */
    @Excel(name = "申请人id")
    private Long applyManId;

    /** 申请人 */
    @Excel(name = "申请人")
    private String applyMan;

    /** 申请时间 */
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /** 审批时间 */
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approvalTime;

    /** 审批节点 */
    @Excel(name = "审批节点")
    private String approvalNode;

    /** 审批结果 */
    @Excel(name = "审批结果")
    private Integer approvalResult;

    /** 成果类型 */
    @Excel(name = "成果类型")
    private Integer docType;

    /** 成果关联id */
    @Excel(name = "成果关联id")
    private Long docRelationId;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtTime;

    /** 审批人id */
    @Excel(name = "审批人id")
    private Long approvalManId;

    /** 审批人 */
    @Excel(name = "审批人")
    private String approvalMan;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setApprovalName(String approvalName) 
    {
        this.approvalName = approvalName;
    }

    public String getApprovalName() 
    {
        return approvalName;
    }
    public void setApplyManDept(Long applyManDept) 
    {
        this.applyManDept = applyManDept;
    }

    public Long getApplyManDept() 
    {
        return applyManDept;
    }
    public void setApplyManId(Long applyManId) 
    {
        this.applyManId = applyManId;
    }

    public Long getApplyManId() 
    {
        return applyManId;
    }
    public void setApplyMan(String applyMan) 
    {
        this.applyMan = applyMan;
    }

    public String getApplyMan() 
    {
        return applyMan;
    }
    public void setApplyTime(Date applyTime) 
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime() 
    {
        return applyTime;
    }
    public void setApprovalTime(Date approvalTime) 
    {
        this.approvalTime = approvalTime;
    }

    public Date getApprovalTime() 
    {
        return approvalTime;
    }
    public void setApprovalNode(String approvalNode) 
    {
        this.approvalNode = approvalNode;
    }

    public String getApprovalNode() 
    {
        return approvalNode;
    }

    public Integer getApprovalResult() {
        return approvalResult;
    }

    public void setApprovalResult(Integer approvalResult) {
        this.approvalResult = approvalResult;
    }

    public void setDocType(Integer docType)
    {
        this.docType = docType;
    }

    public Integer getDocType() 
    {
        return docType;
    }
    public void setDocRelationId(Long docRelationId) 
    {
        this.docRelationId = docRelationId;
    }

    public Long getDocRelationId() 
    {
        return docRelationId;
    }
    public void setGmtTime(Date gmtTime) 
    {
        this.gmtTime = gmtTime;
    }

    public Date getGmtTime() 
    {
        return gmtTime;
    }
    public void setApprovalManId(Long approvalManId) 
    {
        this.approvalManId = approvalManId;
    }

    public Long getApprovalManId() 
    {
        return approvalManId;
    }
    public void setApprovalMan(String approvalMan) 
    {
        this.approvalMan = approvalMan;
    }

    public String getApprovalMan() 
    {
        return approvalMan;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("approvalName", getApprovalName())
            .append("applyManDept", getApplyManDept())
            .append("applyManId", getApplyManId())
            .append("applyMan", getApplyMan())
            .append("applyTime", getApplyTime())
            .append("approvalTime", getApprovalTime())
            .append("approvalNode", getApprovalNode())
            .append("approvalResult", getApprovalResult())
            .append("docType", getDocType())
            .append("remark", getRemark())
            .append("docRelationId", getDocRelationId())
            .append("gmtTime", getGmtTime())
            .append("approvalManId", getApprovalManId())
            .append("approvalMan", getApprovalMan())
            .toString();
    }
}
